<div id="submenu">
    {rights right='purchases_view'}<a href="{$site_admin}m=inventory&s=purchases.php" class="{if $subject=='purchases'}on{/if}">所有采购</a>{/rights}
</div>
